<?php use_helper('Text'); ?>

<h1 class="page-title">CPF AIZENAY</h1>

<p>Bienvenue dans la partie Administration, ici vous pourrez manipuler certaines données assez sensibles !<br/>
Faites attention et soyez sûrs de ce que vous faites !<br/>
</p>

<ul class="homePage_boxes">
    <li class="box">
        <h2 class="title">Cette semaine</h2>
        <div>TODO</div>
    </li>
    <li class="box">
        <h2 class="title">Cette année</h2>
        <div>TODO</div>
    </li>
    <li class="box">
        <h2 class="title">Activités du site</h2>
        <div>TODO</div>
    </li>
    <li class="box">
        <h2 class="title">Evénements</h2>
        <div>TODO</div>
    </li>
    <li class="box">
        <h2 class="title">Dernières inscriptions</h2>
        <a href="<?php echo url_for('sfGuardUser/index?sort=created_at&sort_type=desc') ?>">
            <table>
                <?php $i = 0; ?>
                <?php foreach($userList as $user) : ?>
                    <tr <?php echo $i == 7 ? 'class="last"' : '' ?>>
                        <td class="first"><?php echo truncate_text($user['lastname'], 20, '...') ?></td>
                        <td><?php echo truncate_text($user['firstname'], 20, '...') ?></td>
                        <td><?php echo truncate_text($user['User']['email_address'], 23, '...') ?></td>
                        <td><?php echo date('d/m/Y H:i:s', strtotime($user['created_at'])) ?></td>
                    </tr>
                <?php $i++; ?>
                <?php endforeach; ?>
                <tr>

                </tr>
            </table>
        </a>
    </li>
    <li class="box">
        <h2 class="title">Navigateurs</h2>
        <div>TODO</div>
    </li>
    <li class="box">
        <h2 class="title">Serveur</h2>
        <div>TODO</div>
    </li>
</ul>
<div class="push_float"></div>